package com.merge.sample.model;

import java.util.regex.Pattern;

public class Incluable {
	public boolean isInclusive = false;
	public boolean useRegx= false;
	public Object value;
	
	public Incluable(String value, boolean isInclusive, boolean useRegx) {
		this.isInclusive = isInclusive;
		this.useRegx = useRegx;
		if(this.useRegx) {
			this.value = Pattern.compile(value);
		} else {
			this.value = value;
		}
		
	}
	
	public String toString() {
		return value + (useRegx ? "~" : "");
	}
}
